fn main() {
    let mut coin = Coin::C5;
    println!("{:?}", coin);
    if let Coin::C50(name) = coin{
        println!("{:?}", name);
    } else {
        println!("else case");
    }


    coin = Coin::C50(String::from("efg"));
    println!("{:?}", coin);
    if let Coin::C50(name) = &coin{
        println!("{:?}", name);
    } else {
        println!("else case")
    }

}

#[derive(Debug)]
enum Coin {
    C1,
    C5,
    C10,
    C50(String),
}
